package cn.iocoder.yudao.module.product.spu.vo;

import cn.iocoder.yudao.framework.validation.InEnumValue;
import cn.iocoder.yudao.module.api.product.spu.enums.ProductSpuRecommendEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "用户 APP - 设置产品 SPU 推荐类型 Request VO")
@Data
public class AppProductSpuUpdateRecommendReqVO {

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "产品编号不能为空")
    private Long id;

    @Schema(description = "推荐类型：0-无、1-精选、2-爆款、3-新品、4-补贴", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "推荐类型不能为空")
    @InEnumValue(ProductSpuRecommendEnum.class)
    private Integer recommend;

}
